package com.aaa.dao;

import com.aaa.pojo.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单管理dao接口
 */
public interface MenuDao extends BaseMapper<Menu> {

    /**
     * 查询用户能操作的所有一级菜单
     * @param uid
     * @return
     */
    List<Menu> findMenuByUidAndMenuId(@Param("uid") Integer uid, @Param("pid") Integer pid);

}
